package com.yupi.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lc.lcapicomment.model.entity.UserInterfaceInfo;

/**
* @author 罗超
* @description 针对表【user_interface_info(用户接口调用表)】的数据库操作Service
* @createDate 2024-10-17 23:01:40
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean b);

    /**
     * 调用接口统计
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    boolean invokeCount(Long interfaceInfoId, Long userId);

    /**
     * 用户是否还有接口调用次数
     *
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    boolean isHaveInvoke(Long interfaceInfoId, Long userId);
}
